package org.poem.payment.service.impl;

import org.poem.payment.entity.Payment;
import org.poem.payment.mapper.PaymentMapper;
import org.poem.payment.service.IPaymentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author poem
 * @since 2021-04-05
 */
@Service
public class PaymentServiceImpl extends ServiceImpl<PaymentMapper, Payment> implements IPaymentService {

    /**
     * @param payment
     * @return
     */
    public int create(Payment payment) {
        this.save(payment);
        return 1;
    }

    /**
     * @param id id
     * @return
     */
    public Payment getPaymentById(Long id) {
        return this.getById(id);
    }
}
